package com.ailargemodel.service;


import com.ailargemodel.common.BaseResponse;
import com.ailargemodel.pojo.DTO.HistoryDTO;
import com.ailargemodel.pojo.Questtion;
import com.ailargemodel.pojo.User;
import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

//import javax.servlet.http.HttpServletRequest;

public interface AIService {

    BaseResponse Inquire(String context, User user, Integer grade) throws NoApiKeyException, InputRequiredException;


    BaseResponse translate(User user , String topic, Integer grade) throws NoApiKeyException, InputRequiredException;

    BaseResponse unscramble(User user, String topic, Integer grade) throws NoApiKeyException, InputRequiredException;

    BaseResponse guidance(User user , String topic, Integer grade) throws NoApiKeyException, InputRequiredException;

    BaseResponse correction(User user, String code, Integer grade) throws NoApiKeyException, InputRequiredException;

    BaseResponse evaluation(User user, String code, Integer grade) throws NoApiKeyException, InputRequiredException;

    PageInfo<Questtion> selectHistoryBystudyId(Integer pageSize, Integer pageNum, String studyId);

    BaseResponse addNewConversation(User loginUser,String sessionId);
}
